import { createRouter, createWebHashHistory } from 'vue-router'
import BasicLayout from '../layouts/BasicLayout.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: BasicLayout,
    redirect: '/index',
    meta: {
      title: '首页'
    },
    children: [{
      path: '/index',
      name: 'index',
      component: () => import(/* webpackChunkName: "about" */ '../views/index.vue'),
      meta: {
        title: '新增二级商协议'
      },
    }]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
